<include file="public:header" /> <include file="public:left" />
<style>
	td {
		text-align: center;
	}
</style>
<section style="padding-bottom:100px">
	<div class="page_title">
		<h2 class="fl">商品列表</h2>
		<form>
			<input type="text" class="page_title_input" name="keyword" placeholder="搜索商品名称" value="{$keyword}" style="line-height: 16px;height: 16px;">
			<input type="text" class="page_title_input" name="goods_sn" placeholder="搜索商品编码" value="{$goods_sn}" style="line-height: 16px;height: 16px;">
			<input  class="page_title_submit" type="submit" value="搜索" style="height: 24px;width: 55px;line-height: 16px;cursor: pointer;">
		</form>
		<a class="fr" href="/admin/goods/add_goods.html">商品添加</a>
	</div>
	<table class="table">
		<tr>
			<th>编号</th>
			<th>商品名称</th>
			<th>商品编码</th>
			<th>商品品牌</th>
			<th>商品分类</th>
			<th>商品图片</th>
			<th>商品状态</th>
			<th>操作</th>
		</tr>

		<volist name="list" id="vo" key="k">
			<tr>
				<td style="width: 60px;">{$vo.id}</td>
				<td>{$vo.name}</td>
				<td>{$vo.goods_sn}</td>
				<td>{$vo.bname}</td>
				<td>{$vo.category_name}</td>
				<td><img src="{$config_uploads}{$vo.image}" width="100" height="100"></td>
				<td>
					<if condition="$vo.status eq 0">
						下架
						<else/>
						上架
					</if>
				</td>
				<td>
					<a href="{:url('Goods/add_goods',array('id'=>$vo['id']))}" class="inner_btn">编辑</a>
				</td>
			</tr>
		</volist>
	</table>
	{$list->render()}
</section>
</div>
</section>
</body>

</html>